package com.xy.service;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Reference//引用， 正常开发中引用pom坐标。这里使用定义路径相同的地址的接口名
    TicketService ticketService;

    public void bugTicket(){
        String ticket = ticketService.getTicket();
        System.out.println("在注册中心拿到："+ticket);
    }
}
